package com.maimao.core.advice;

import com.maimao.core.model.resp.Result;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2021/4/5 3:27 下午
 */
public class GlobalTransactionResHelper {

    public static boolean needRollBack(List<Result> results){
        for (Result res : results) {
            if (res==null||!res.isFlag()){
                return true;
            }
        }
        return false;
    }
}
